<?php if( !isset($error) ) {?>
<div class="galleries_item">

    <?php foreach ($arr_data as $index=>$m_model) {?>
    <div class    = "item_vertical">
        <img alt = "album" src = "<?=$m_model->url;?>" />
        <div class="item_content border_radius_all">
            <span class="item_title"><?=$m_model->name;?></span>
            <input 
                id      = "btn_delete"
                name    = "delete"
                type    = "button"
                value   = "Xóa"
                style   = "width:100%;"
                class   = "button button_css3"
                onclick = "delete_selectedItem()"
            />
        </div>
    </div><!-- End item_vertical -->
    <?php }?>
    
</div><!-- End galleries_item -->
<?php }
else {?>
    <?=$error;?>
<?php }?>